home *** CD-ROM | disk | FTP | other *** search
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.5 sun4m)
- MIME-Version: 1.0
- Subject: Re: Fastest way to display things on a screen?
- References: <4l0pi6$gus@mn5.swip.net> <4l2qdn$akr@news.rwth-aachen.de> <4l80lm$9nl@marti.uji.es>
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- Path: imada.ou.dk!breese
- From: breese@imada.ou.dk (Bjorn Reese)
- Message-ID: <1996Apr21.132507.7212@imada.ou.dk>
- Sender: news@imada.ou.dk
- Nntp-Posting-Host: gounod.imada.ou.dk
- Organization: Dept. of Math. & Computer Science, Odense University, Denmark
- Date: Sun, 21 Apr 1996 13:25:07 GMT
- Newsgroups: comp.sys.amiga.programmer
-
- Acereda Macia Jorge wrote:
- > Smooth? I've written some code to test the intuition double
- > buffering routines and the results are not good enough :-(
-
- [... examples of where double buffering goes wrong deleted ...]
-
- The only stable scheme I was able to come up with is based on
- WaitTOF() rather than the dbuf messages. (I know that it's a
- hack, but nobody has been able to convince me of a better scheme)
-
- while (!terminated) {
- do {
- HandleIDCMP();
- result = ChangeScreenBuffer(...);
- WaitTOF();
- } while (result = 0);
- /* do funky stuff */
- ...
- }
-
- --
- Bjorn Reese Email: breese@imada.ou.dk
- Odense University, Denmark URL: http://www.imada.ou.dk/~breese
-
- "It's getting late in the game to show any pride or shame" - Marillion
-